package com.njmaomao.gj.pyot.domain.wechat;

import com.njmaomao.gj.pyot.config.Bizs;

/**
 * 退款单
 * @author hh 2018-5-10
 */
public class RefundOrder {

    //hh订单号
    private String orderCode;

    //订单总金额
    private double txnAmt;

    // 退款单号
    private String refundOrderCode;

    // 退款金额
    private double refundAmt;

    // 退款描述
    private String refundDesc;

    public String getRefundOrderCode() {
        return refundOrderCode;
    }

    public void setRefundOrderCode(String refundOrderCode) {
        this.refundOrderCode = refundOrderCode;
    }

    public double getRefundAmt() {
        return refundAmt;
    }

    public void setRefundAmt(double refundAmt) {
        this.refundAmt = refundAmt;
    }

    public String getRefundDesc() {
        return refundDesc;
    }

    public void setRefundDesc(String refundDesc) {
        this.refundDesc = refundDesc;
    }


    /**
     * 获取以分为单位的退款金额
     * @return
     */
    public int refundAmtForCent(){
        return Bizs.convert2FenUnit(getRefundAmt());
    }

    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public double getTxnAmt() {
        return txnAmt;
    }

    public void setTxnAmt(double txnAmt) {
        this.txnAmt = txnAmt;
    }
}
